package com.situ.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.domain.entity.TDictDistrict;
import com.situ.domain.entity.TDictDistrictExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TDictDistrictMapper extends BaseMapper<TDictDistrict> {
    long countByExample(TDictDistrictExample example);

    int deleteByExample(TDictDistrictExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TDictDistrict record);

    int insertSelective(TDictDistrict record);

    List<TDictDistrict> selectByExample(TDictDistrictExample example);

    TDictDistrict selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TDictDistrict record, @Param("example") TDictDistrictExample example);

    int updateByExample(@Param("record") TDictDistrict record, @Param("example") TDictDistrictExample example);

    int updateByPrimaryKeySelective(TDictDistrict record);

    int updateByPrimaryKey(TDictDistrict record);

    /**
     * 根据省市区编码查询省市区名称
     * @param provinceCode
     * @param cityCode
     * @param areaCode
     * @return
     */
    List<TDictDistrict> getAreaName(String provinceCode, String cityCode, String areaCode);
}